package cn.wx.common.utils;

import org.apache.commons.lang.StringUtils;

/**
 *   @description : 密码MD5加密
 *   ---------------------------------
 *   @author zj
 *   @since 2017-10-27
 */
public class PwdUtil {
	
	private final static String salt = "lehumall";
	
	public static String getPwd(String orig) {
		return MD5Util.MD5(MD5Util.MD5(orig) + salt);
	}
	
	public static Boolean valiPwd(String orig, String cryp) {
		if (StringUtils.equals(getPwd(orig), cryp)) {
			return true;
		} else {
			return false;
		}
	}
	
}
